//
//  MyCell.m
//  时尚男士
//
//  Created by 张家为 on 15/6/10.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "MyCell.h"

@implementation MyCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.lable = [[UILabel alloc] init];
        [self.contentView addSubview:self.lable];
        [self.lable release];
        
        self.imageView1 = [[UIImageView alloc] init];
        [self.contentView addSubview:self.imageView1];
        [self.imageView1 release];
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.imageView1.frame = CGRectMake(0, 10, 20, 20);
    self.lable.frame = CGRectMake(30 , 0, self.contentView.frame.size.width - 40, self.contentView.frame.size.height);
}

-(void)dealloc{
    [_lable release];
    [_imageView1 release];
    [super dealloc];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
